Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

204
Visualizações
Html-to-react-components CLI : "Successfully generated 0 components" after adding data-components

My goal is simple : changing an index file to a React package for some integrations later on. Looking at different tools, the "easiest" one seems to be html-to-react-components, with its CLI commands.

After adding data-component="myDataComponent" to the element I want to convert, I typed the following command to create the React elements :

html2react <path-to-index.html>

But for some reason, this is the output : Successfully generated 0 components: Saved into "components" directory

After looking at the sample provided in the repo and swapping a few elements, it doesn't look like I did something wrong, appart from installing the module itself.

Ran both npm i html-to-react-components and npm i -g html-to-react-components but no constructive results.

Any Ideas on why does it not work the way it should ?

Edit : NPM Version : v6.4.11 Node version : v16.14.2

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda